//index.js
//获取应用实例
var app = getApp()
var pageConfig = {
  data: {
    userInfo: {},
    thisTitle: "",
    opsList: [
      {
        id:"1",
        src:"../images/pos.png",
        title: "简易快餐收银系统",
        link: "../details/details",
        detailsTxt: "一个简易的快餐收银系统，可进行点餐，增减商品，结账等操作。",
        detailsImg: ["../images/pos.png"]
      },
      {
        id: "2",
        src: "../images/yz.png",
        title: "云竹官网",
        link: "../details/details",
        detailsTxt: '云竹协作的宣传网站，可以进行客户端，app的下载。',
        detailsImg: ["../images/yz.png", "../images/yz1.png", "../images/yz2.png"]
      },
      {
        id: "3",
        src: "../images/zb.png",
        title: "云竹众包",
        link: "../details/details",
        detailsTxt: "此项目是一个与云竹协作产品打通互联网众包平台，定位是为企业提供高端服务，为专业人士提供对口兼职,发布者可以在众包网站发布任务（悬赏，竞标，雇佣三种任务）。当服务方接取任务之后，双方需要到云竹协作上去签定及管理任务，任务完成后即可获得报酬",
        detailsImg: ["../images/zb.png"]
      },
      {
        id: "4",
        src: "../images/zf.jpg",
        title: "智菲官网",
        link: "../details/details",
        detailsTxt: "智菲公司的宣传网站，提供行业解决方案，帮助用户实现信息化管理。",
        detailsImg: ["../images/zf.jpg"]
      },
      {
        id: "5",
        src: "../images/cs.png",
        title: "后台管理系统",
        link: "../details/details",
        detailsTxt: "一个后台管理系统",
        detailsImg: ["../images/cs.png"]
      },
      {
        id: "6",
        src: "../images/lr.jpg",
        title: "iMall电子钱包",
        link: "../details/details",
        detailsTxt: "一个集支付，充值，消费等为一体的生活服务平台，依托于蓝润地产服务于所有商圈用户，体现便捷生活特点",
        detailsImg: ["../images/lr1.jpg", "../images/lr2.jpg", "../images/lr3.jpg"]
      },
      {
        id: "7",
        src: "../images/tdjl.png",
        title: "天地精灵",
        link: "../details/details",
        detailsTxt: "微信公众号开发，一个H5页面的活动，通过以购买高端艺术品丝巾用来赠送作为艺术推广",
        detailsImg: ["../images/tdjl1.jpg", "../images/tdjl2.jpg", "../images/tdjl3.jpg"]
      }
    ]
  },
  //事件处理函数
  bindViewTap: function () {
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
  onLoad: function () {
    var that = this
    that.setData({
      thisTitle: app.globalData.mcTitle[0]
    })
    
    //调用应用实例的方法获取全局数据(这是用户信息)
    app.getUserInfo(function (userInfo) {
      //更新数据
      that.setData({
        userInfo: userInfo
      })
    })
  }
}

Page(pageConfig)
